#include "particle.h"


particle::particle()
{
  
  particle::p4=TLorentzVector(0,0,0,0);
  charge=-9;
}
//copy constructor this works well ;)

particle::particle(const particle& aptcl){
  
  *this=aptcl;
  
}

particle::~particle(){
  
}

short int particle::Charge()
{
return charge;
}

void particle::SetCharge(short int c)
{
charge=c;
}

double particle::deltaR ( particle p1,particle p2 )
{
return p1.P4().DeltaR(p2.P4());
}
double particle::deltaPhi ( particle p1,particle p2 )
{
return p1.P4().DeltaPhi(p2.P4());
}


TLorentzVector particle::P4(){
  return particle::p4;
}

void particle::setP4(TLorentzVector lv)
{

  particle::p4=lv;
}


bool particle::Trg1(){
  return trg1;
}

bool particle::Trg2(){
  return trg2;
}

bool particle::Trg3(){
  return trg3;
}

bool particle::Trg4(){
  return trg4;
}

void particle::setTrg1(bool t){
  
  trg1=t;
}
void particle::setTrg2(bool t){
  
  trg2=t;
}
void particle::setTrg3(bool t){
  
  trg3=t;
}
void  particle::setTrg4(bool t){
  
  trg4=t;
}
